﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Real_Time : UserControl
    {
        public Real_Time()
        {
            InitializeComponent();
        }
        DateTime endTime = new DateTime(2016, 04, 01, 08, 00, 00);

        private void timer1_Tick(object sender, EventArgs e)
        {
            TimeSpan ts = endTime.Subtract(DateTime.Now);
            toolStripStatusLabel1.Text = ts.ToString("dd' days 'hh' hours 'mm' minutes and 'ss' seconds ultil the race starts'");
        }

        private void Real_Time_Load(object sender, EventArgs e)
        {
            timer1.Start();
        }
    }
}
